<script setup>
import { loginApi } from '@/api/login'
import { reactive } from 'vue';
const from = reactive({
    username: '',
    password: ''
})
const submitLogin = async() => {
    console.log('点击登录')
    await loginApi()
}
</script>

<template>
    <div>
        登录
    </div>
    <button @click="submitLogin">点击登录</button>
</template>
<style>


</style>